Jesus was body, soul and spirit. His soul & spirit were perfectly in tune with the Fathers law & will. His body didn't need to be perfect, nor could it be. His body became perfect when it was "glorified" in the resurrection. It is that soul & spirit that had pre-existance with the Father.
AAAh--soul.
and you know all the above--how ?